import request from '@/utils/request'

// 查询参会人员信息列表
export function listUserMeeting(query) {
  return request({
    url: '/bussiness/userMeeting/list',
    method: 'get',
    params: query
  })
}

// 查询参会人员信息详细
export function getUserMeeting(id) {
  return request({
    url: '/bussiness/userMeeting/' + id,
    method: 'get'
  })
}

// 新增参会人员信息
export function addUserMeeting(data) {
  return request({
    url: '/bussiness/userMeeting',
    method: 'post',
    data: data
  })
}

// 修改参会人员信息
export function updateUserMeeting(data) {
  return request({
    url: '/bussiness/userMeeting',
    method: 'put',
    data: data
  })
}

// 删除参会人员信息
export function delUserMeeting(id) {
  return request({
    url: '/bussiness/userMeeting/' + id,
    method: 'delete'
  })
}

//签到
export function sign(query) {
  return request({
    url: '/bussiness/userActivity/sign',
    method: 'get',
    params: query
  })
}

// 用户详情

export function getInfoByCode(number) {
  return request({
    url: `/bussiness/userMeeting/getInfoByNumber/${number}`,
    method: 'get'

  })
}

//统计人数
export function getPeoPleNo(data) {
  return request({
    url: `/bussiness/userActivity/countActivityPeople`,
    method: 'post',
    data

  })
}


//统计人数
export function getSignNo(query) {
  return request({
    url: `/bussiness/userActivity/listNoPage`,
    method: 'get',
    params: query

  })
}